package tw.asap.plus.entity.request;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Yax.
 * Date: 15/11/14
 * Time: 上午1:41
 * Description:
 */
public class OrderCreateResult implements Parcelable {


    /**
     * price : 订单价格 单位:分
     * create_time : 创建时间, YYYY-MM-DD HH:MM:SS
     * order_sn : 订单序列号
     */

    private String price;
    private String create_time;
    private String order_sn;

    public void setPrice(String price) {
        this.price = price;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public void setOrder_sn(String order_sn) {
        this.order_sn = order_sn;
    }

    public String getPrice() {
        return price;
    }

    public String getCreate_time() {
        return create_time;
    }

    public String getOrder_sn() {
        return order_sn;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.price);
        dest.writeString(this.create_time);
        dest.writeString(this.order_sn);
    }

    public OrderCreateResult() {
    }

    protected OrderCreateResult(Parcel in) {
        this.price = in.readString();
        this.create_time = in.readString();
        this.order_sn = in.readString();
    }

    public static final Parcelable.Creator<OrderCreateResult> CREATOR = new Parcelable.Creator<OrderCreateResult>() {
        public OrderCreateResult createFromParcel(Parcel source) {
            return new OrderCreateResult(source);
        }

        public OrderCreateResult[] newArray(int size) {
            return new OrderCreateResult[size];
        }
    };
}
